﻿using System.Web.Mvc;
using System.Web.Routing;

namespace MM.Web.App_Start
{
    /// <summary>
    /// Route Config
    /// </summary>
    public class RouteConfig
    {
        /// <summary>
        /// Registers the routes.
        /// </summary>
        /// <param name="routes">The routes.</param>
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                "Default", // Route name
                "{controller}/{action}/{id}", // URL with parameters
                new { controller = "MyMoney", action = "Index", id = UrlParameter.Optional }, // Parameter defaults
                new[] { "MyMoneyWeb.Controllers" }
            );
        }
    }
}